package com.example.activiti.service;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/test")
public interface ActivityConsumerService {
    /**
     * 流程demo
     * @return
     */
    @GetMapping(value="/activityDemo")
    boolean startActivityDemo();

    /**
     * 查看实例流程图，根据流程实例ID获取流程图
     */
    @GetMapping(value="traceProcess/{instanceId}")
    void traceProcess(HttpServletResponse response, @PathVariable("instanceId")String instanceId)throws Exception;

    @GetMapping("/testAdd")
    void testAdd();

}
